import java.lang.reflect.Method;

public class Test {
    public static void main(String[] args) throws Exception {
        function1();
    }


    private static void function1() throws Exception{
        Person p = new Person();
        Method setAge = Person.class.getMethod("setAge", Integer.class);
        setAge.invoke(p,">");
        System.out.println(p);
    }
}
